$OpenBSD: patch-exp_inter_c,v 1.1 2015/04/02 17:46:57 sebastia Exp $
--- exp_inter.c.orig	Tue Aug 31 15:20:27 2010
+++ exp_inter.c	Wed Apr  1 15:46:05 2015
@@ -1824,12 +1824,12 @@ got_action:
 		    skip += matchLen;
 		    size -= skip;
 		    if (size) {
-			memcpy(u->buffer, u->buffer + skip, size);
+			memmove(u->buffer, u->buffer + skip, size);
 		    }
 		} else {
 		    if (skip) {
 			size -= skip;
-			memcpy(u->buffer, u->buffer + skip, size);
+			memmove(u->buffer, u->buffer + skip, size);
 		    }
 		}
 		Tcl_SetObjLength(size);
@@ -2070,12 +2070,12 @@ got_action:
 		    skip += matchLen;
 		    size -= skip;
 		    if (size) {
-			memcpy(u->buffer, u->buffer + skip, size);
+			memmove(u->buffer, u->buffer + skip, size);
 		    }
 		} else {
 		    if (skip) {
 			size -= skip;
-			memcpy(u->buffer, u->buffer + skip, size);
+			memmove(u->buffer, u->buffer + skip, size);
 		    }
 		}
 		Tcl_SetObjLength(size);
